#include <QCoreApplication>
#include <QByteArray>
#include <QJsonDocument>
#include <QJsonParseError>
#include <QJsonObject>
#include <QJsonValue>
#include <QJsonArray>
#include <QTextCodec>
#include <QDebug>

int main(int argc, char *argv[])
{
	QCoreApplication a(argc, argv);
	QJsonObject contentObject = {{"id", 51319},{"name", "商学院20级专升本晚间签到"},{"startTime", 1634303400000},{"endTime", 1634308200000},{"locale", "郑州航空工业管理学院南校区"},{"distance", 500},{"lng", 113.64623},{"lat", 34.716907},{"planId", 9629},{"type", 1},{"signObject", 1}};
	QJsonArray contentArray;
	contentArray.append(contentObject);
	QJsonArray nullArray;
	qDebug() << nullArray;
	QJsonObject dataObject = {{"content",nullArray}};
	QJsonObject jsonObject = {{"status",1},{"msg",""},{"data",dataObject}};
	qDebug () <<jsonObject;
	if(jsonObject.value("data").toObject().value("content").isNull())
		qDebug () <<jsonObject.value("data").toObject().value("content").toArray()[0].toObject().value("id").toInt();
	return a.exec();
}
